package com.frank.subject.infra.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.frank.subject.infra.basic.entity.SubjectRadio;
import com.frank.subject.infra.basic.mapper.SubjectRadioMapper;
import com.frank.subject.infra.basic.service.SubjectRadioService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 单选题信息表(SubjectRadio)表服务实现类
 *
 * @author makejava
 * @since 2024-01-23 17:23:43
 */
@Service("subjectRadioService")
public class SubjectRadioServiceImpl extends ServiceImpl<SubjectRadioMapper, SubjectRadio> implements SubjectRadioService {

    private final SubjectRadioMapper subjectRadioMapper;

    public SubjectRadioServiceImpl(SubjectRadioMapper subjectRadioMapper) {
        this.subjectRadioMapper = subjectRadioMapper;
    }

    @Override
    public List<SubjectRadio> queryBySubjectId(Long subjectId) {
        return this.subjectRadioMapper.queryBySubjectId(subjectId);
    }
}
